import homesRouter from "./homes";
import adduserRouter from "./adduser";
import studentRouter from "./student";
import classifyRouter from "./testclassify";
import classroomRouter from "./classroom";
import stuRouter from "./stu";

export default [
  {
    path: "/home",
    name: "Home",
    redirect: "/home/homes",
    component: () => import(/* webpackChunkName: "home" */ "../../views/Home"),
    meta: {
      login: true,
      title: "首页",
      auth: ["管理员", "浏览者", "出题者"],
    },
    children: [
      homesRouter,
      adduserRouter,
      studentRouter,
      classifyRouter,
      classroomRouter,
      stuRouter,
    ],
  },
];
